<?php

global $project;
$project = 'website';
define('PROJECT_DIR', $project);

global $databaseConfig;
$databaseConfig = array(
	"type" => 'MySQLDatabase',
	"server" => 'localhost',
	"username" => 'root',
	"password" => '',
	"database" => 'SS_herentals',
	"path" => '',
);

MySQLDatabase::set_connection_charset('utf8');
SSViewer::set_theme('default');
i18n::set_locale('nl_NL');
SiteTree::enable_nested_urls();
FulltextSearchable::enable();
CMSMenu::remove_menu_item('UserHelp');
CMSMenu::remove_menu_item('CommentAdmin');
Object::add_extension('SiteConfig', 'CustomSiteConfig'); 
Object::add_extension('LeftAndMain', 'MyLeftAndMainDecorator'); 
Object::add_extension('Group', 'GroupDecorator');
Object::useCustomClass('MemberLoginForm', 'CustomLoginForm');
SiteTree::$breadcrumbs_delimiter = " <span>>></span>  ";
Object::add_extension('ArticleHolder', 'SiteTreeSorter');

Director::set_environment_type("dev");
error_reporting(E_ALL ^ E_NOTICE);
GD::set_default_quality(95);

Director::addRules(1, array(
   'winkel//$Action/$ID' => 'ShopPage_Controller' 
));